package ch13;

/**
 * Created by zhangyunqi on 2017/10/9.
 */
public class SearchingT {
    public static void main(String[] args) {
        Comparable[] irr = new Comparable[9];
        irr[0] = (3);
        irr[1] = (8);
        irr[2] = (12);
        irr[3] = (34);
        irr[4] = (54);
        irr[5] = (84);
        irr[6] = (91);
        irr[7] = (110);
        irr[8] = (2307);

        Comparable find = (Comparable)Searching.linearSearch(irr,54);
        System.out.println("linearSearch find 54:");
        if(find==null){
                        System.out.println("Not find ");
                   }else {
                        System.out.println("Find it");
                   }
                System.out.println();

    }
}

